package com.atguigu.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.atguigu.service.HelloService;
import org.springframework.transaction.annotation.Transactional;

@Transactional
@Service(interfaceClass = HelloService.class) //dubbo框架提供的注解，才能成功的发布服务，才能注册到zookeeper中心
public class HelloServiceImpl implements HelloService {
    @Override
    public String sayHello(String name) {
        return "hello " + name;
    }
}
